//app.js
//2018012902105448(正式)
// 2017122801292932（测试）
App({
  onLaunch: function (options) {
    console.log(options);
    if (options.query && options.query.qrCode) {
      let str = options.query.qrCode;
      // let sn = str.substr(str.length - 8, 8);
      let sn = str.split('//')[1].split('/')[2];
        my.navigateTo({
          url:'order?sn='+sn
        })
    }
  },
  globalData: {
    // baseurl: "http://test.juzipower.com/server/index.php/api",
    // baseurl: "https://www.juzipower.com/server/index.php/api",
    // baseurl: "http://172.18.0.76:8080/applet",
    // baseurl: "https://test.juzipower.com/applet",
    baseurl: "https://www.juzipower.com/applet",
    // baseurl: "http://juzi.de/server/index.php/api",

  }
})